<!DOCTYPE html>

<html>

<head>

    <title>{$site_name}-会员信息-会员列表</title>

    <meta name="keywords" content="{$site_seo_keywords}" />

    <meta name="description" content="{$site_seo_description}">



    <tc_include file="Public:head" />
    <style>
        #my-table td{
            white-space: nowrap;
        }
        #my-table th{
            white-space: nowrap;
        }
    </style>
</head>



<body class="body-white" id="top">

<tc_include file="Public:nav" />



<div class="container tc-main">

    <div class="row">

        <div class="span2">

            <tc_include file="Public:usernav"/>

        </div>

        <div class="span10">


            <div class="tab-content">

                <div class="tab-pane active" id="one">
                    <!--<form id="addform" action="{:leuu('User/Info/cimport')}" method="post" enctype="multipart/form-data">-->
                        <!--<p>请选择要导入的CSV文件：-->
                            <!--<input type="file" class="btn" name="file" style="height: 18px;line-height: 18px;padding:4px 12px 12px 12px">-->
                            <!--<input type="submit" class="btn" value="导入CSV">-->
                    <!--</form>-->

                    <if condition="207 eq $usid || 210 eq $usid">
                         <form action="{:leuu('User/Info/exportall')}" enctype="multipart/form-data">
                            <div style="margin-bottom: -20px;">
                                <input type="text" name="begintime" placeholder="起始日期" class="js-date" > &nbsp;&nbsp;&nbsp;&nbsp; 至 &nbsp;&nbsp;&nbsp; <input type="text" name="endtime" placeholder="结束日期" class="js-date" >
                                &nbsp;&nbsp;&nbsp; <input type="submit" class="btn" value="导出数据" style="margin-bottom: 10px;width: 100px">
                            </div>
                        </form>
                    </if>


                    <form class="form-inline" method="get">
                        <div style="margin-bottom: -10px">
                        <select  name="cardlevel" id="cardlevel" style="height: 35px;line-height: 35px;">
                            <option value="">请选择会员卡级别</option>
                            <foreach name="cardlevel" item="val">
                                <option value="{$val.id}" <if condition="$val['id'] eq $condition['cardlevel']">selected</if> >{$val.cardname}</option>
                            </foreach>
                        </select>
                        <select name="status" style="height: 35px;line-height: 35px;">
                            <option value="1" <if condition="1 eq $condition['status']">selected</if>>已激活</option>
                            <option value="2" <if condition="2 eq $condition['status']">selected</if>>已删除</option>
                        </select>

                        </div>
                        <br>
                        <input type="text" name="cardnum" placeholder="输入卡号" value="{$condition.cardnum}">

                        <input type="text" name="tel" placeholder="输入手机号码" value="{$condition.tel}">

                        <input type="text" name="name" placeholder="输入姓名" value="{$condition.name}">

                        <button class="btn">搜索</button>

                    </form>


                    <div  style="width: 946px;overflow-x: scroll">
                    <table class="table table-bordered table-striped table-hover" id="my-table">

                        <thead>

                        <tr>

                            <th>id</th>
                            <th>卡号</th>
<!--                            <th>添加床位</th>-->
                            <th>姓名</th>
                            <th>手机</th>
                            <th>级别</th>
                            <th>生日</th>
                            <th>合同时间</th>
<!--                            <th>升级时间</th>-->
<!--                            <th>续合同时间</th>-->
                            <th>最后消费时间</th>
                            <th>消费次数</th>
                            <th>总储值</th>
                            <th>合计领取</th>
<!--                            <th>床位信息</th>-->
                            <th>备注</th>
                            <th>工作人员</th>
                            <th>开卡人</th>
                            <th>操作</th>

                        </tr>

                        </thead>


                            <tbody>

                            <foreach name="lists" item="vo">

                                <tr>

                                    <td>{$vo.id}</td>

                                    <td><a href="{:leuu('User/Info/edit',array('cardnum'=>$vo['cardnum']))}">{$vo.cardnum}</a></td>
<!--                                    <td><a href="{:leuu('User/Store/addbunk',array('cardnum'=>$vo['cardnum']))}">添加床位</a></td>-->
                                    <td>{$vo.name}</td>
                                    <td>{$vo.tel}</td>
                                    <td>{$vo.cardname}</td>
                                    <td>{$vo.shengri}</td>
                                    <td>{$vo.createtime}</td>
<!--                                    <td>-->
<!--                                        <if condition="'0000-00-00' neq $vo['upgradetime']">-->
<!--                                            {$vo.upgradetime}-->
<!--                                        </if>-->
<!--                                    </td>-->
<!--                                    <td>-->
<!--                                        <if condition="'0000-00-00' neq $vo['extensiontime']">-->
<!--                                            {$vo.extensiontime}-->
<!--                                        </if>-->
<!--                                    </td>-->
                                    <td>{$vo.lastcosttime}</td>
                                    <td>{$vo.costcount}</td>
                                    <td>{$vo['totalstore']/100}</td>
                                    <td>{$vo['totalrentmoney']/100}</td>
<!--                                    <td>-->
<!--                                        <if condition="$vo['usetime']">-->
<!--                                            {$vo.areaname}-{$vo.housename}-{$vo.floorname}-{$vo.roomname}-{$vo.bedname}-{$vo.usetime}个月-->
<!--                                        </if>-->
<!--                                    </td>-->
                                    <td>{$vo.remark}</td>
                                    <td>{$vo.yewuyuan}</td>
                                    <td>{$vo.kaikarenname}</td>

                                    <td><a href="{:leuu('User/Info/storehis',array('cardnum'=>$vo['cardnum']))}">消费历史</a>|
                                        <a href="{:leuu('User/Rental/rentalhis',array('cardnum'=>$vo['cardnum']))}">领取历史</a>|
                                        <if condition="$vo['status'] eq 1">
                                            <a class="js-ajax-dialog-btn"  data-msg="您确定要删除吗？" data-ok="" data-cacel="取消" href="{:leuu('User/Info/del',array('cardnum'=>$vo['cardnum']))}">删除</a>
                                        </if>

                                    </td>

                                </tr>

                            </foreach>

                            </tbody>

                    </table>
                    </div>
                </div>
                <div class="pagination">{$page}</div>
            </div>

        </div>

    </div>

    <tc_include file="Public:footer" />

</div>

<!-- /container -->

<tc_include file="Public:scripts" />

</body>

</html>